# -*- coding: utf-8 -*-
# @Time : 2021/7/2 23:54
# @Author : 摘星星的小女孩
# @Email : wayne_lau@aliyun.com
# @File : front_register.py
# @Project : ecshop
from  selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.maximize_window()
#注册
driver.get("http://192.168.4.138/ecshop/user.php?act=register")
driver.find_element(By.ID,"username").send_keys("渣渣辉21") #用户名
driver.find_element(By.ID,"email").send_keys("224461@qq.com") #邮箱
driver.find_element(By.ID,"password1").send_keys("123456")  #密码
driver.find_element(By.ID,"conform_password").send_keys("123456") #确认密码
driver.find_element(By.NAME,"Submit").click()  #确认按钮
